<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>Hello APP</title>
<link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
<link rel="stylesheet" type="text/css" href="../../css/common.css" />
<style>
#footer{
	position: fixed;
	width: 100%;
	left: 0;
	bottom: 0;
	background: #E73350;
	color: #fff;
	font-size: 0.7rem;
	height: 2.4rem;
	line-height: 2.4rem;
	text-align: center;
}
</style>
</head>

<body>
		<header class="aui-bar aui-bar-nav aui-bar-light" id="header">
	      <div class="aui-pull-left back" tapmode onclick="api.closeWin()"></div>
	      <div class="aui-title">我的收货地址</div>
	  </header>
		<footer id="footer" tapmode onclick="new_Address()">+ 新增收货地址</footer>
</body>
<script type="text/javascript" src="../../script/import.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
		var header = $api.byId('header');
        $api.fixStatusBar(header);
				var headerH = $api.offset(header).h;
        var footerH = $api.offset(footer).h;
        api.openFrame({
            name: 'address_frm',
            url: 'address_frm.html',
            rect: {
                x: 0,
                y: headerH,
                w: 'auto',
                h: api.winHeight-headerH-footerH
			},
            pageParam: api.pageParam
        });
    };
		// 添加收货地址
		function new_Address(){
			api.openWin({
			    name: 'add_address_win',
			    url: 'add_address_win.html',
			    pageParam: {
			        newAddr: '新增收货地址'
			    }
			});
		}
</script>
</html>
